package com.test.luo;

/**
 * 
 *
 */
public enum Planet
{
	/**
	 * 
	 */
	MERCURY(11,454),
	MERCURY2(11,454);
	

	/**
	 * 常量域
	 * 
	 */
	private final int mass ;
	private final int rads ;
	private final int surfaceGravity;
	
	
	/**
	 * 
	 * @param i 质量
	 * @param j 半径
	 * 
	 */
	Planet(int i ,int j){
		this.mass = i ;
		this.rads =j;
		this.surfaceGravity = mass/(rads *	rads) ;
		
	}
	
	
	public int getMass()
	{
		return mass ;
	}
	
	public int getRads(){
		return rads;
	}
	
	
	public int getGravity()
	{
		return surfaceGravity;
	}
	
	
	
	
	
}
